From 6d618d8bb6a4cf665d41de25724d42fa9dbc8bd6 Mon Sep 17 00:00:00 2001 From: Christian Limpach Date: Wed, 11 Apr 2007 18:39:05 +0100 Subject: [PATCH] [linux] Make CONFIG_XEN_COMPAT #if statements syntactically correct. Signed-off-by: Christian Limpach --- linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/pgtable.h | 2 +- linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/pgtable.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/pgtable.h b/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/pgtable.h index 7f44818297..276309ce73 100644 --- a/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/pgtable.h +++ b/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/pgtable.h @@ -210,7 +210,7 @@ extern unsigned long pg0[]; /* To avoid harmful races, pmd_none(x) should check only the lower when PAE */ #define pmd_none(x) (!(unsigned long)pmd_val(x)) -#ifdef CONFIG_XEN_COMPAT <= 0x030002 +#if CONFIG_XEN_COMPAT <= 0x030002 /* pmd_present doesn't just test the _PAGE_PRESENT bit since wr.p.t. can temporarily clear it. */ #define pmd_present(x) (pmd_val(x)) diff --git a/linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/pgtable.h b/linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/pgtable.h index 7a5662620d..0c14e0122d 100644 --- a/linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/pgtable.h +++ b/linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/pgtable.h @@ -411,7 +411,7 @@ static inline int pmd_large(pmd_t pte) { #define pmd_offset(dir, address) ((pmd_t *) pud_page(*(dir)) + \ pmd_index(address)) #define pmd_none(x) (!pmd_val(x)) -#ifdef CONFIG_XEN_COMPAT <= 0x030002 +#if CONFIG_XEN_COMPAT <= 0x030002 /* pmd_present doesn't just test the _PAGE_PRESENT bit since wr.p.t. can temporarily clear it. */ #define pmd_present(x) (pmd_val(x)) -- 2.30.2